//
//  PhotoInfo.m
//  3DModelCollector
//
//  Created by Jing Zhang on 7/10/12.
//  Copyright (c) 2012 Tencent. All rights reserved.
//

#import "PhotoInfo.h"

@implementation PhotoInfo

@synthesize coordinate  = _coordinate;
@synthesize direction   = _direction;
@synthesize timeStamp   = _timeStamp;
@synthesize attachedSideIndex   = _attachedSideIndex;
@synthesize purposeFlag = _purposeFlag;
@synthesize name        = _name;
@synthesize desc        = _desc;

- (void)dealloc {
    
    self.timeStamp = nil;
    self.name = nil;
    self.desc = nil;
    
    [super dealloc];
}

- (id)copyWithZone:(NSZone *)zone {
    
    PhotoInfo* newPhotoInfo = [[[self class] allocWithZone:zone] init];
    newPhotoInfo.coordinate = self.coordinate;
    newPhotoInfo.direction = self.direction;
    newPhotoInfo.timeStamp = [self.timeStamp copy];
    newPhotoInfo.attachedSideIndex = self.attachedSideIndex;
    newPhotoInfo.purposeFlag = self.purposeFlag;
    newPhotoInfo.name = [self.name copy];
    newPhotoInfo.desc = [self.desc copy];

    return newPhotoInfo;
}

@end
